package api

import (
	"certificate/vo"
	"github.com/gin-gonic/gin"
)

func ResponseError(c *gin.Context, message string, code int) {
	data := vo.ResponseError{}
	data.Data.Description = message
	data.Data.ErrorCode = code
	data.Message = "error"
	c.JSON(200, data)
}

func ResponseSuccess(c *gin.Context, data interface{}) {
	c.JSON(200, data)
}
